home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 14467 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.1 KB

  1. Path: nntp1.best.com!zenin
  2. From: Zenin <zenin@best.com>
  3. Newsgroups: comp.lang.perl.misc,comp.lang.c
  4. Subject: Re: PROGRAMERS OF ANY LANGUAGE
  5. Date: 15 Apr 1996 03:20:58 GMT
  6. Organization: Rocky Horror, Barely Legal (Berkeley, CA)
  7. Message-ID: <4ksfaq$jug@nntp1.best.com>
  8. References: <Pine.SOL.3.91.960329010021.13209A-100000@harvey> <4kqe6q$1tm@innocence.interface-business.de> <4kr869INN35k@keats.ugrad.cs.ubc.ca> <4krg5h$7tt@nntp1.best.com> <4krrccINN78i@keats.ugrad.cs.ubc.ca>
  9. NNTP-Posting-Host: shellx.best.com
  10.  
  11. Kazimir Kylheku <c2a192@ugrad.cs.ubc.ca> wrote:
  12.     >snip<
  13. : Actually I do program much. I wouldn't talk if I were you, read on...
  14.     Hmm, didn't see my simily did you?  Oh well...
  15.     >snip<
  16. : In your if statement, the else clause gets executed if *any one* of the
  17. : test expressions fails! ``if (1 && 1 && 0)'' will launch into the *else* clause.
  18. : In MY if statement, the else clause only gets executed it the *outermost* test
  19. : condition fails. ``if (1) if (1) if (0) statement 1; else statement2;'' will
  20. : cause *neither* statement1 *nor* statement2 to be executed!
  21.     There are ways around this as well, however simply taking the 10
  22.     secs of time to add the }{s as your past example did would be the
  23.     easyest way in Perl.
  24.  
  25. : See, the two are not equivalent at all!
  26.     You're right, and that teaches me to followup after a double
  27.     espresso. ;-}
  28.  
  29. : ... and I still think Perl's handling of the classic if/then ambiguity during
  30. : LR parsing is a lame copout. But I like it very much otherwise...
  31.     ... and I still wonder how you can call good programing habbits a
  32.     "lame copout". But I like your ideas vary much otherwise...
  33.  
  34.     Just to note, the optional omission of }{s around loops in C is by
  35.     far one of it's sillyest "features", IMHO, and should never have
  36.     been allowed into the language.  But I digress... :)
  37. ______
  38.      /  Spelling mistakes?  Their couldn't be. -My modem is error correcting.
  39.     /
  40.    /    Zenin@Best.com                   ---->>ROCKY HORROR ARCHIVE<<----
  41.   /      ___    __  o   __
  42.  /      /___\ |/  \ | |/  \                 http://www.best.com/~zenin/
  43. /_______\___  |   | | |   |_______________________________________________
  44.